import BootstrapLoader from "./BootstrapLoader"; // 加载器
import BootstrapFirewall from "./BootstrapFirewall"; // 防火墙
/**
 * 引导程序
 */
class Bootstrap{

    /**
     * 运行引导
     * @param { App }
     */
    boot = function(App){
        //加载全局对象
        App = BootstrapLoader.boot(App);
        //验证防火墙
        if(BootstrapFirewall.boot == false){

        }
    }

    /**
     * 单列对象
     * @var { Bootstrap }
     */
    static Instance = null;
    /**
     * 单列访问
     * @return { Bootstrap }
     */
	static getInstance = function(){
        if (Bootstrap.Instance == null) {
            Bootstrap.Instance = new Bootstrap();
        }
        return Bootstrap.Instance;
    }
}
export default Bootstrap